package com.grad.why.studentsystem.mapper;

import com.grad.why.studentsystem.domain.Workrole;
import com.grad.why.studentsystem.domain.WorkroleExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WorkroleMapper {
    int countByExample(WorkroleExample example);

    int deleteByExample(WorkroleExample example);

    int deleteByPrimaryKey(Integer workroleid);

    int insert(Workrole record);

    int insertSelective(Workrole record);

    List<Workrole> selectByExample(WorkroleExample example);

    Workrole selectByPrimaryKey(Integer workroleid);

    int updateByExampleSelective(@Param("record") Workrole record, @Param("example") WorkroleExample example);

    int updateByExample(@Param("record") Workrole record, @Param("example") WorkroleExample example);

    int updateByPrimaryKeySelective(Workrole record);

    int updateByPrimaryKey(Workrole record);

    int getworkRoleIdByWorkRoleName(@Param("workRoleName") String workRoleName);
}